/*
 *  globals.h
 *  Maciago
 *
 *  Created by mmarcos on Sat Apr 06 2002.
 *  Copyright (c) 2001 __MyCompanyName__. All rights reserved.
 *
 */

#ifndef __bool_true_false_are_defined

typedef int bool;
#define true 1
#define false 0

#endif

/*
bit description:
0..1 -> kEmpty = 00, kBlackPiece = 01, kWhitePiece = 10
   2 -> kLegalMove
   3 -> kStablePiece
   4 -> kSugestedMove
5..7 -> not used
*/

typedef unsigned char uchar;

#define kDefaultBoardSize 8

enum
{
    kEmpty = 0,
    kBlackPiece = 1,
    kWhitePiece =  2,
    kLegalMove = 4,
    kStablePiece = 8,
    kSugestedMove = 16
};

enum
{
    kBellowLeft  = 22, 
    kLeft        = 20,
    kAboveLeft   = 21,
    kBellow      = 02,
    kAbove       = 01,
    kBellowRight = 12,
    kRight       = 10,
    kAboveRight  = 11
};